﻿<%@ page contentType="text/html; charset=UTF-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html dir="ltr" lang="en-gb">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="imagetoolbar" content="no">
<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
<title>我的群</title>
<link type="text/css" rel="Stylesheet"
	href="/PCT/StyleAll/styleLogIn.css" />
<link type="text/css" rel="Stylesheet" href="/PCT/StyleAll/styleAll.css" />
<style type="text/css">
.STYLE1 {
	font-size: 36px
}
</style>
</head>

<body class="browser-webkit can-transform has-shadows transform">
	<div class="header">
		<a> <img src="/PCT/image/Logo Small.png" width=1000px height=50px
			alt="Logo Small">
		</a>
	</div>
	<p>&nbsp;</p>
	<div class="page">
		<div id="page-header">
			<div id="search-box">
				<s:if test="#session.status.currentUser.userType == 1">病友：</s:if>
				<s:elseif test="#session.status.currentUser.userType == 2">医生：</s:elseif>
				<s:elseif test="#session.status.currentUser.userType == 3">管理员：</s:elseif>
				<a><s:property value="#session.status.currentUser.username" /></a>
				等级： <a><s:property value="#session.status.currentUser.rank" /></a>
				<img src="/PCT/image/2.png" width=15px height=15px> <a
					href=" <s:url action='logout' namespace='/secure'/>">退出</a>
			</div>
			<s:if test="#session.status.currentUser.userType == 0">

			</s:if>
			<s:else>
				<a
					href="<s:url action='redirectResult' namespace='/public'>
							<s:param name='redirectType' value='5' />
						 </s:url>"
					class="button2">账户管理</a>
				<a
					href="<s:url action='redirectResult' namespace='/public'>
							<s:param name='redirectType' value='6' />
						 </s:url>"
					class="button2">申请新群</a>
			</s:else>
			<!-- <a href="/PCT/Account/manageAccount.jsp"><input type="submit" name="submit" value="账户管理" class="button2"></a> -->

			<!-- <a href="/PCT/Group/applyNewGroup.jsp"><input type="submit" name="submit" value="申请新群" class="button2"></a> -->
			<a
				href="<s:url action='redirectResult' namespace='/public'>
							<s:param name='redirectType' value='7' />
						 </s:url>"
				class="button2">查找疾病</a>
			<form id="search" name="search" action="/PCT/public/search.action"
				style="display: inline">
				关键字：<input name="target" type="text" /> <select name="searchType">
					<option value="post">搜索帖子</option>
					<option value="topic">搜索主题</option>
					<option value="group">搜索群</option>
				</select> <input type="submit" value="GO" class="button2" />
			</form>

		</div>
		<div id="page-body">
			<div id="buttonNewGroup" title="创建新的群"></div>
			<div class="forabg">
				<div class="inner">
					<span class="corners-top"><span></span></span>
					<ul class="topiclist">
						<li class="header">
							<dl class="icon">
								<dt>我的群</dt>
								<dd class="topics">主题数</dd>
								<dd class="posts">帖子数</dd>
								<!-- <dd class="lastpost"><span>最后回复</span></dd> -->
							</dl>
						</li>
					</ul>
					<s:iterator value="#session.status.relatedGroups" status="itStatus">
						<ul class="topiclist forums">
							<li class="row">
								<dl class="icon"
									style="background-image: url(./styles/art_phantom/imageset/forum_read.png); background-repeat: no-repeat;">
									<dt title="无新文章">
										<s:url action="accessTopics" var="selectedUrl"
											namespace="/public">
											<s:param name="selectedGroupName" value="%{groupName}" />
										</s:url>
										<a href='<s:property value="#selectedUrl" />'><s:property
												value="groupName" /></a>
									</dt>
									<dd class="topics">
										<s:property value="topicNumber" />
										<dfn>主题数</dfn>
									</dd>
									<dd class="posts">
										<s:property value="postNumber" />
										<dfn>帖子数</dfn>
									</dd>
									<!--<dd class="lastpost"><span><dfn>最后发表</dfn>
									<a><s:property value="username"/></a>
									<br>12:27 2012年3月16日</span></dd>-->
								</dl>
							</li>
						</ul>
					</s:iterator>
					<span class="corners-bottom"><span></span></span>
				</div>
			</div>
			<div>
				<a href='<s:url action="firstPageForGroup" namespace="/public">
							<s:param name="type">1</s:param>
							</s:url>'>
					<input type="submit" name="firstpage" value="首页" class="button2"></a>
				<a href='<s:url action="previousPageForGroup" namespace="/public">
							<s:param name="type">1</s:param>
							</s:url>'>
					<input type="submit" name="page_up" value="上一页" class="button2"></a>
				<a href='<s:url action="nextPageForGroup" namespace="/public">
							<s:param name="type">1</s:param>
							</s:url>'>
					<input type="submit" name="page_down" value="下一页" class="button2"></a>
				<a href='<s:url action="lastPageForGroup" namespace="/public">
							<s:param name="type">1</s:param>
							</s:url>'>
					<input type="submit" name="lastpage" value="尾页" class="button2"></a>

			</div>
		</div>
	</div>
	<div class="footer">
		<div class="copyright">
			<p class="copy-left">上海交通大学 软件学院</p>
			<p class="copy-right">
				设计风格 <a href=" http://www.artodia.com/">Artodia</a> 。
			</p>
		</div>
	</div>
</body>

</html>
